package com.meals.system.dao;

import com.meals.system.entity.Carousel;
import com.meals.system.util.PageQueryUtil;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Description:
 * Parm:
 * return:
 * Author: Chen
 * Date: 2021/12/4
 */
@Mapper
public interface CarouselMapper {

    Carousel selectByPrimaryKey(Integer carouselId);

    List<Carousel> findCarouselList(PageQueryUtil pageQueryUtil);

    List<Carousel> findCarouselsByNum(@Param("number") int number);

    int getTotalCarousels(PageQueryUtil pageUTil);



    int insert(Carousel record);

    int insertSelective(Carousel record);


    int updateByPrimaryKey(Carousel record);

    int updateByPrimaryKeySelective(Carousel record);

    int deleteByPrimaryKey(Integer carouselId);

    int deleteBatch(Long[] ids);
}
